export const MENU_PERMISSION_CODES = {
  DASHBOARD: 'menu:dashboard',
  PRODUCT: 'menu:product',
  PRODUCT_LIST: 'menu:product:list',
  PRODUCT_CATEGORY: 'menu:product:category',
  PRODUCT_UPLOAD: 'menu:product:upload',
  ORDER: 'menu:order',
  ORDER_LIST: 'menu:order:list',
  ORDER_REFUND: 'menu:order:refund',
  USER: 'menu:user',
  DOCUMENT: 'menu:document',
  DOCUMENT_LIST: 'menu:document:list',
  DOCUMENT_COLLAB: 'menu:document:collab',
  STATISTICS: 'menu:statistics',
  SALES_STATS: 'menu:statistics:sales',
  DATA_EXPORT: 'menu:statistics:export',
  FILE: 'menu:file',
  FILE_MANAGE: 'menu:file:manage',
  FAVORITES: 'menu:file:favorites',
  RECYCLE_BIN: 'menu:file:recycle',
  CHAT: 'menu:chat',
  SYSTEM: 'menu:system',
  ROLE_MANAGE: 'menu:system:role',
  PERMISSION_MANAGE: 'menu:system:permission',
  MENU_MANAGE: 'menu:system:menu',
  AUDIT_LOG: 'menu:audit-log',
  SETTINGS: 'menu:settings',
} as const

export const ROUTE_PERMISSION_MAP: Record<string, string | undefined> = {
  dashboard: MENU_PERMISSION_CODES.DASHBOARD,
  'product-list': MENU_PERMISSION_CODES.PRODUCT_LIST,
  'product-category': MENU_PERMISSION_CODES.PRODUCT_CATEGORY,
  'product-upload': MENU_PERMISSION_CODES.PRODUCT_UPLOAD,
  'order-list': MENU_PERMISSION_CODES.ORDER_LIST,
  'order-refund': MENU_PERMISSION_CODES.ORDER_REFUND,
  user: MENU_PERMISSION_CODES.USER,
  'doc-list': MENU_PERMISSION_CODES.DOCUMENT_LIST,
  'doc-collab': MENU_PERMISSION_CODES.DOCUMENT_COLLAB,
  'sales-stats': MENU_PERMISSION_CODES.SALES_STATS,
  'data-export': MENU_PERMISSION_CODES.DATA_EXPORT,
  'file-manage': MENU_PERMISSION_CODES.FILE_MANAGE,
  favorites: MENU_PERMISSION_CODES.FAVORITES,
  'recycle-bin': MENU_PERMISSION_CODES.RECYCLE_BIN,
  chat: MENU_PERMISSION_CODES.CHAT,
  'role-manage': MENU_PERMISSION_CODES.ROLE_MANAGE,
  'permission-manage': MENU_PERMISSION_CODES.PERMISSION_MANAGE,
  'menu-manage': MENU_PERMISSION_CODES.MENU_MANAGE,
  'audit-log': MENU_PERMISSION_CODES.AUDIT_LOG,
  settings: MENU_PERMISSION_CODES.SETTINGS,
}


